Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NitCC implements Separator and Tail #2836

Closed
wants to merge 8 commits into from
Closed

Conversation

privat
Copy link
Member

@privat privat commented Jun 23, 2024

Also cleanup plus.

For reference, plus in the parser transform

foo = x bar+ y | z ;

into

foo = x abs0 y | z ;
abs0 = {one:} bar | {more:} abs0 bar ;

With Separator ansd Tail,

foo = x (bar Separator baz)+ y | z ;

becomes

foo = x abs1 y | z ;
abs0 = bar baz ;
abs1 = (one:) bar | {more:} abs0+ bar;

and

foo = x (bar Tail baz)+ y | z ;

becomes

foo = x abs1 y | z ;
abs0 = bar baz ;
abs1 = (one:) bar | {more:} abs0+ bar | {tail:} abs0+;

Copy link

Test Results

    67 files     314 suites   11m 28s ⏱️
14 174 tests 13 623 ✅ 541 💤 0 ❌ 10 🔥
14 230 runs  13 664 ✅ 556 💤 0 ❌ 10 🔥

For more details on these errors, see this check.

Results for commit e967536.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant